import {type FormSchema} from '#/../../../packages/@core/ui-kit/form-ui/src/types'
import type {VxeGridPropTypes} from "#/adapter/vxe-table";

export const form_schema:FormSchema<any>[]=[
  {
    component: 'ImageUpload',
    fieldName:'icon',
    label:'应用图标',
    rules: 'required',
  },
  {
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
    fieldName: 'gameName',
    label: '游戏名称',
    rules: 'required',
  },
  {
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
    fieldName: 'url',
    label: 'URL',
    rules: 'required',
  },
]
export const table_columns:VxeGridPropTypes.Columns=[
  { field: 'icon', title: '应用图标',fixed:'left',minWidth:150,
    slots:{default:'icon'}
  },
  { field: 'gameName', title: '游戏名称',fixed:'left',minWidth:150 },
  { field: 'url', title: 'URL', minWidth:150},
]
